home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12996 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.6 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.eiffel,comp.lang.c,comp.lang.c++,comp.object,comp.software-eng
  4. Subject: Re: Beware of "C" Hackers -- A rebuttal to Bertrand Meyer
  5. Date: 22 Mar 1996 14:20:19 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4iv933INN7f2@keats.ugrad.cs.ubc.ca>
  8. References: <1995Jul3.034108.4193@rcmcon.com> <653t-Df-3RB@herold.franken.de> <bksDoFwBA.Eut@netcom.com> <jmaling-2303960413010001@slwol1p47.ozemail.com.au>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <jmaling-2303960413010001@slwol1p47.ozemail.com.au>,
  12. John Maling <jmaling@ozemail.com.au> wrote:
  13.  >Up until a couple of months ago, OOD&P remained a curious mystery to me.
  14.  >My logic centres were set way deep for structured programming. People
  15.  >preaching OOD&P as 'THE WAY' left me stone cold- I thought it just another
  16.  >language bigotry thing.
  17.  >
  18.  >However, since then I have 'seen the light'. OOP is indeed The Way (at
  19.  >least until something better is created). I was converted by <free plug
  20.  >time> Robert Martins book, 'Designing Object-Oriented C++ Applications
  21.  >using the Booch method.' I had periodically read books on OOD and always
  22.  >missed the point, but Martins book lit my head up like a Christmas tree. I
  23.  >had one of those 'Ahhhh!' experiences. Quite literally, I woke up sleepily
  24.  >one early morning- sat on the edge of the bed, and suddenly the whole
  25.  >concept of what makes OOD so good just hit me. Any parent of a newborn
  26.  >whose baby cries in the night knows well the effect of being transformed
  27.  >from sleep to hyper-alertness in a split second. It is not a pleasent
  28.  >sensation. Nevertheless that was the effect on me when OOD principles
  29.  >finaly clicked for me.
  30.  
  31. I understand OOD: I see the technical advantages, but not the practical
  32. advantages. I'm not on a holy grail quest to seek the best, most reusable
  33. representation of a problem in terms of abstract entities and behaviors.  To
  34. me, that is just buffoonery that's not worth the effort most of the time. OO
  35. programs are more complex and slower than their structured counterparts.
  36. Oh, but boy do they have elegant internals! If you are more concerned with
  37. _how_ you solve a problem than with _that_ you solve the problem, OO can be a
  38. happy hunting ground.
  39.  
  40. Maybe the understanding hit you so sharply because you didn't understand
  41. structured, abstract programming in the first place, so your gestalt was a leap
  42. straight into OO. If that is the case, it is understandable why you would feel
  43. so enlightened.
  44.  
  45.  >So I can understand what Meyers means by 'serious debriefing', it was only
  46.  >after my notions of structured programming logic were deeply suppressed
  47.  
  48. It sounds like you are missing an intermediate step there. Structured
  49. programming refers to the use of program constrol structures. Or are you
  50. referring to structured analysis and design,  including data abstraction and
  51. modularity and all that? How about encapsulation and the separation between
  52. interfaces and implementation? You can have all these things without calling
  53. it OO.
  54.  
  55. If you are a master in this paradigm, OO doesn't strike you as anything ``Zen
  56. like'', but as a marginal improvement in some aspects of design  and
  57. implementation that's generally not worth the hassle. You can benefit from 
  58. OO approaches even ifyou use languages like C and Modula 2. You don't need the
  59. extra linguistic frills to benefit from the useful concepts of the paradigm.
  60.  
  61. Knowing it makes for a good resume filler nowadays, mind you.  A successful
  62. resume in the computing field has some mention of ``Object Oriented'', or the
  63. ``OO'' contraction in it somewhere. :)
  64. -- 
  65.  
  66.